<template>
  <h2 :content="data_content">
    <span>{{ title }}</span>
  </h2>
</template>

<script>
export default {
  name: 'BigTitle',
  props: {
    title: {
      default: ''
    },
    data_content: {
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
h2 {
  user-select: none;
  position: relative;
  margin-bottom: 20px;
  &::before {
    position: absolute;
    left: 0;
    bottom: 0;
    content: attr(content);
    opacity: 0.2;
    background: -webkit-linear-gradient(90deg, transparent, $primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 38px;
    font-weight: 800;
    white-space: nowrap;
    z-index: 1;
  }
  span {
    position: relative;
    z-index: 10;
    font-size: 30px;
    color: $font;
  }
}
</style>
